﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace WebSite.Controles
{
    public partial class MedioTransporte : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                try
                {
                    Condor.Data.MedioTransporte M = new Condor.Data.MedioTransporte();
                    DataTable dt = new DataTable();
                    dt = M.ListarTipos().Tables[0];
                    for (int i = 0; i < dt.Rows.Count; i++)
                    {
                        cboTipo.Items.Add(new ListItem(dt.Rows[i][0].ToString(), dt.Rows[i][1].ToString()));
                    }
                }
                catch
                { 
                
                }

            }
        }
    }
}